package com.example.xpvideo.entity;

import java.time.LocalDateTime;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 平台管理员表(Admin)实体类
 *
 * @author 杨丽辉
 * @since 2021-08-19 15:00:25
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Admin implements Serializable {
    private static final long serialVersionUID = -73276523022145874L;
        /**
    *主键
    * ${column.comment}
    * isnull 1
    */
        private Integer id;

    /**
    * 账号即手机号
    * isnull 0
    */            private String account;
    /**
    * 加密密码
    * isnull 0
    */            private String pwd;
    /**
    * 明文密码
    * isnull 0
    */            private String openPwd;
    /**
    * 昵称
    * isnull 0
    */            private String nickname;
    /**
    * 头像
    * isnull 0
    */            private String img;
    /**
    * 状态；0冻结；1正常
    * isnull 0
    */            private Integer stage;
    /**
    * 注册时间
    * isnull 0
    */        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
            private LocalDateTime createTime;
    /**
    * 更新时间
    * isnull 0
    */        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
            private LocalDateTime updateTime;
        
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
        
    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }
        
    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }
        
    public String getOpenPwd() {
        return openPwd;
    }

    public void setOpenPwd(String openPwd) {
        this.openPwd = openPwd;
    }
        
    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }
        
    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }
        
    public Integer getStage() {
        return stage;
    }

    public void setStage(Integer stage) {
        this.stage = stage;
    }
        
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
        
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

        @Override
    public String toString() {
        return "{" +
                    " \"id\":" + id +
                                  " ,\"account\":" + account +
                            " ,\"pwd\":" + pwd +
                            " ,\"openPwd\":" + openPwd +
                            " ,\"nickname\":" + nickname +
                            " ,\"img\":" + img +
                            " ,\"stage\":" + stage +
                            " ,\"createTime\":" + createTime +
                            " ,\"updateTime\":" + updateTime +
                  '}';
    }


}
